package edu.hawaii.myisern.brown.action;

import java.util.List;
import edu.hawaii.myisern.brown.model.MyIsernModel;

/**
 * Provides a data integrity report.
 * 
 * This isn't actually an action bean, just a bean.
 * TODO make it an action bean?
 * 
 * @author Brian Jaress
 * @author Randy Cox
 */
public class ReportActionBean {

  /**
   * Build a report of dangling references, missing fields, etc.
   * 
   * @return a report
   */
  public List<List<String>> getReport() {
    return MyIsernModel.getInstance().getDataIntegrityReport();
  }

  /**
   * Build a table list of the researchers.
   * 
   * @return a report
   */
  public List<List<String>> getResearcherTable() {
    return MyIsernModel.getInstance().getResearcherTable();
  }

  /**
   * Build a table list of the organizations.
   * 
   * @return a report
   */
  public List<List<String>> getOrganizationTable() {
    return MyIsernModel.getInstance().getOrganizationTable();
  }

  /**
   * Build a table list of the collaborations.
   * 
   * @return a report
   */
  public List<List<String>> getCollaborationTable() {
    return MyIsernModel.getInstance().getCollaborationTable();
  }

}
